package xyz.coolcsm.security.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 什锦
 * @since 2021-06-1
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_resource")
@AllArgsConstructor
@NoArgsConstructor
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    //捐赠人名字
    private String dname;

    //资源链接
    private String ddesc;

    //提取码
    private String dcode;

    //捐献时间
    @TableField(fill = FieldFill.INSERT)//自动填充
    private Date createTime;

}
